﻿Public Class Form1
  Private Sub Form1_Load(
      ByVal sender As System.Object,
      ByVal e As System.EventArgs) _
      Handles MyBase.Load
    'TODO: questa riga di codice carica i dati nella 
    ' tabella 'Customers_and_OrdersDataSet.Customers'.
    ' È possibile spostarla o rimuoverla se necessario.
    Me.CustomersTableAdapter.Fill(
      Me.Customers_and_OrdersDataSet.Customers)
  End Sub

  Private Sub SalvaToolStripButton_Click(
      ByVal sender As System.Object,
      ByVal e As System.EventArgs) _
      Handles SalvaToolStripButton.Click
    Me.Validate()
    Me.BindingSource1.EndEdit()
    Me.CustomersTableAdapter.Update(
      Me.Customers_and_OrdersDataSet.Customers)
    Me.CustomersTableAdapter.Fill(
      Me.Customers_and_OrdersDataSet.Customers)
  End Sub
End Class
